<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title></title>
	<style type="text/css">
		html, body {
			margin: 0;
			height: 100%;
			background: #f5f5f5;
		}
		
		.title {
			background: #fff;
			height: 50px;
			display: flex;
			line-height: 50px;
			position: relative;
			padding: 0 15px;
		}
		
		.title div {
			width: 100px;
			text-align: center;
			position: absolute;
			left: calc(50vw - 50px);
		}
		
		.title span {
			font-size: 14px;
		}
		
		.txt {
			text-align: center;
			padding-top: 30px;
			color: #666;
		}
		
		#b {
			display: none;
		}
	</style>
	<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
	<script type='text/javascript'>
	    (function(m, ei, q, i, a, j, s) {
					m[i] = m[i] || function() {
							(m[i].a = m[i].a || []).push(arguments)
					};
					j = ei.createElement(q),
							s = ei.getElementsByTagName(q)[0];
					j.async = true;
					j.charset = 'UTF-8';
					j.src = 'https://static.meiqia.com/dist/meiqia.js?_=t';
					s.parentNode.insertBefore(j, s);
			})(window, document, 'script', '_MEIQIA');
			_MEIQIA('entId', 'a60a5900b67564cd6dcd6d94ce9fb772');
            //替换 'entId'
	
			
			_MEIQIA('allSet', function(){
				_MEIQIA('showPanel');
			});
			
			// 初始化成功时的回调
			_MEIQIA('allSet', successFn);
			
			function successFn() {
				document.getElementById('a').style.display = "none"
				document.getElementById('b').style.display = "block"
			}

			function back() {
				uni.navigateBack({})
			}
	</script>
</head>
<body>
	<div class="title">
		<span onclick="uni.navigateBack()">退出</span>
		<div>客服</div>
	</div>
	<div class="txt">
		<p id="a">正在连接中...</p>
		<p id="b">可点击页面聊天按钮进入</p>
	</div>
</body>
</html>